Skip to content

Improve Quantization Setup Prompts and Doc #1537

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

zhenyan-zhang-meta
Copy link
Contributor

Currently we don't prompt people to clone torchao first before running bash torchchat/utils/scripts/build_torchao_ops.sh. We can improve the prompts and doc similar to what we already have for bash torchchat/utils/scripts/build_native.sh et link_torchao_ops.

cc @Jack-Khuu @byjlw

@zhenyan-zhang-meta zhenyan-zhang-meta self-assigned this May 1, 2025
Copy link

pytorch-bot bot commented May 1, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/torchchat/1537

Note: Links to docs will display an error until the docs builds have been completed.

❌ 4 New Failures, 2 Cancelled Jobs

As of commit 70239cc with merge base 0299a37 (image):

NEW FAILURES - The following jobs have failed:

CANCELLED JOBS - The following jobs were cancelled. Please retry:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label May 1, 2025
Copy link
Contributor

@Jack-Khuu Jack-Khuu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, mini nit good good to merge

exit 1
fi

if [[ "$LINK_TORCHAO_OPS" == "ON" ]]; then
if [ ! -d "${TORCHCHAT_ROOT}/torchao-build" ]; then
echo "Directory ${TORCHCHAT_ROOT}/torchao-build does not exist."
echo "Make sure you run clone_torchao"
echo "Make sure you run bash torchchat/utils/scripts/clone_torchao.sh"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: don't need to specify bash

@@ -149,6 +149,7 @@ From the torchchat root directory, run
bash torchchat/utils/scripts/build_torchao_ops.sh
```

Note that before running it, you must first clone torchao with `bash torchchat/utils/scripts/clone_torchao.sh` if you have not done so already.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clone_torchao is called as part of the install_requirements, so it might be better for us to remind users to call that first

@Jack-Khuu
Copy link
Contributor

The ET failure is a separate pin error that I'm throwing up a fix for

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Meta Open Source bot.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants